package com.cupcorn.lib.game.element;

import com.cupcorn.lib.Anchor;
import com.cupcorn.lib.Ratio;

public class GameElementText
{
	public String	content;
	public int		indexFont, charactersMaximum;
	public float	x, y, wrapWidth;
	
	public boolean	useWrap;
	
	public Anchor	anchor;
	public Ratio ratio;
	
	public GameElementText(String content, int indexFont, float x, float y, Anchor anchor, Ratio ratio)
	{
		this(content, indexFont, x, y, 1, false, anchor, ratio);
	}
	
	public GameElementText(String content, int indexFont, float x, float y, int charactersMaximum, Anchor anchor, Ratio ratio)
	{
		this(content, indexFont, x, y, charactersMaximum, 1, false, anchor, ratio);
	}
	
	public GameElementText(String content, int indexFont, float x, float y, float wrapWidth, boolean useWrap, Anchor anchor, Ratio ratio)
	{
		this(content, indexFont, x, y, 0, wrapWidth, useWrap, anchor, ratio);
	}
	
	public GameElementText(String content, int indexFont, float x, float y, int charactersMaximum, float wrapWidth, boolean useWrap, Anchor anchor, Ratio ratio)
	{
		super();
		this.content = content;
		this.indexFont = indexFont;
		this.x = x;
		this.y = y;
		this.wrapWidth = wrapWidth;
		this.charactersMaximum = charactersMaximum;
		this.anchor = anchor;
		this.useWrap = useWrap;
		this.ratio = ratio;
	}
}
